/* 路线管理页面样式 */
.routes-page {
  padding: 24px;
  background: #f0f2f5;
  min-height: 100vh;
}

.routes-page .ant-card {
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.routes-page .ant-card:last-child {
  margin-bottom: 0;
}

/* 统计卡片样式 */
.routes-page .ant-statistic {
  text-align: center;
}

.routes-page .ant-statistic-title {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.routes-page .ant-statistic-content {
  font-size: 28px;
  font-weight: 700;
}

.routes-page .ant-statistic-content-prefix {
  margin-right: 4px;
}

.routes-page .ant-statistic-content-suffix {
  margin-left: 4px;
  font-size: 16px;
  color: #999;
}

/* 工具栏样式 */
.routes-page .ant-card-head {
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.routes-page .ant-card-head-title {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

/* 地图容器样式 */
.routes-page .map-container {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 路线详情样式 */
.routes-page .route-detail {
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.routes-page .route-detail h4 {
  color: #333;
  margin-bottom: 12px;
  font-size: 16px;
}

.routes-page .route-detail .detail-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.routes-page .route-detail .detail-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.routes-page .route-detail .detail-label {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}

.routes-page .route-detail .detail-value {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

/* 途经城市标签样式 */
.routes-page .waypoint-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.routes-page .waypoint-tags .ant-tag {
  margin: 0;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

/* 表格操作按钮样式 */
.routes-page .action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.routes-page .action-buttons .ant-btn {
  font-size: 12px;
  padding: 4px 8px;
  height: 24px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .routes-page {
    padding: 16px;
  }
  
  .routes-page .ant-card {
    margin-bottom: 12px;
  }
  
  .routes-page .ant-statistic-content {
    font-size: 24px;
  }
  
  .routes-page .ant-card-body {
    padding: 16px;
  }
  
  .routes-page .map-container {
    height: 400px;
  }
  
  .routes-page .route-detail {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .routes-page {
    padding: 12px;
  }
  
  .routes-page .ant-statistic-content {
    font-size: 20px;
  }
  
  .routes-page .ant-card-body {
    padding: 12px;
  }
  
  .routes-page .map-container {
    height: 300px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.routes-page .ant-card {
  animation: fadeInUp 0.3s ease-out;
}

/* 加载状态样式 */
.routes-page .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 8px;
}

/* 空状态样式 */
.routes-page .empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #999;
}

.routes-page .empty-state .anticon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #d9d9d9;
}

.routes-page .empty-state h3 {
  color: #666;
  margin-bottom: 8px;
  font-size: 16px;
}

.routes-page .empty-state p {
  color: #999;
  font-size: 14px;
}

/* 错误状态样式 */
.routes-page .error-state {
  text-align: center;
  padding: 48px 24px;
  color: #ff4d4f;
}

.routes-page .error-state .anticon {
  font-size: 48px;
  margin-bottom: 16px;
}

.routes-page .error-state h3 {
  color: #ff4d4f;
  margin-bottom: 8px;
  font-size: 16px;
}

.routes-page .error-state p {
  color: #ff7875;
  font-size: 14px;
}

/* 工具提示样式 */
.routes-page .ant-tooltip-inner {
  border-radius: 6px;
  font-size: 12px;
}

/* 分页样式 */
.routes-page .ant-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* 导出按钮样式 */
.routes-page .export-button {
  background: #52c41a;
  border-color: #52c41a;
}

.routes-page .export-button:hover {
  background: #73d13d;
  border-color: #73d13d;
}

/* 刷新按钮样式 */
.routes-page .refresh-button {
  background: #1890ff;
  border-color: #1890ff;
}

.routes-page .refresh-button:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}